<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>快乐两小时后台</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {include file="public/header" /}
    <link rel="stylesheet" href="__admin__/assets/admin.css">
</head>
<!-- 主体样式 -->
<style class="theme"></style>

<body>
    <div class="layui-layout layui-layout-admin">
        <!-- 头部区域 -->
        <div class="layui-header">
            <!-- 图标logo -->
            <div class="layui-logo admin-logo">
                <img src="__admin__/assets/logo.png" alt="logo">
                <h1>KLLXS后台</h1>
            </div>
            <!-- 头部左侧区域 -->
            <ul class="layui-nav layui-layout-left">
                <!-- 左侧菜单伸缩 -->
                <li class="layui-nav-item layui-show-xs-inline-block" lay-unselect kllxs-on="menuLeft">
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-shrink-right"></i>
                    </a>
                </li>
                <!-- 跳转前台 -->
                <li class="layui-nav-item" lay-unselect>
                    <a href="/" target="_blank" title="前台">
                        <i class="layui-icon layui-icon-website"></i>
                    </a>
                </li>
                <!-- 刷新主体内容窗口 -->
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" kllxs-on="refreshTab" title="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>
            <!-- 图标右侧区域 -->
            <ul class="layui-nav layui-layout-right">
                <!-- 全屏事件 -->
                <li class="layui-nav-item layui-hide-xs" lay-unselect kllxs-on="fullState">
                    <a href="javascript:;" title="全屏">
                        <i class="layui-icon layui-icon-screen-full"></i>
                    </a>
                </li>
                <!-- 清理缓存 -->
                <li class="layui-nav-item" lay-unselect kllxs-on="clearCache">
                    <a href="javascript:;" title="清理缓存">
                        <i class="layui-icon layui-icon-delete"></i>
                    </a>
                </li>
                <!-- 我的信息 -->
                <li class="layui-nav-item layui-hide layui-show-sm-inline-block" lay-unselect kllxs-on="onMine">
                    <a href="javascript:;" title="我的信息">
                        <img src="{$user.avatar}" class="layui-nav-img">
                        {$user.name}
                        <i class="layui-icon layui-icon-down"></i>
                    </a>
                </li>
                <!-- 右侧隐藏菜单 -->
                <li class="layui-nav-item" kllxs-on="menuRight" lay-unselect>
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-more-vertical"></i>
                    </a>
                </li>
            </ul>
        </div>
        <!-- 左侧菜单区域 -->
        <div class="layui-side">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="admin-left-nav">

                </ul>
            </div>
        </div>
        <!-- 主体内容区域 -->
        <div class="layui-body admin-body">
            <!-- 标签滑动左侧 -->
            <div class="admin-tab-roll-left admin-tab-roll" kllxs-on="rollLeft">
                <i class="layui-icon layui-icon-prev"></i>
            </div>
            <!-- 标签滑动右侧 -->
            <div class="admin-tab-roll-right admin-tab-roll" kllxs-on="rollRight">
                <i class="layui-icon layui-icon-next"></i>
            </div>
            <!-- 标签操作 -->
            <div class="admin-tab-roll-more admin-tab-roll" kllxs-on="rollMore">
                <i class="layui-icon layui-icon-down"></i>
            </div>
            <!-- 标签内容区域 -->
            <div class="layui-tab layui-tab-card" lay-allowclose="true" lay-filter="admin-tab">
                <!-- 标签列 -->
                <ul class="layui-tab-title">
                    <li class="layui-this" lay-id="1" id="admin-tab-id">
                        <i class="layui-icon layui-icon-home"></i>
                    </li>
                </ul>
                <!-- 标签内容 -->
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <iframe src="{:route('admin.index.console')}" frameborder="0"></iframe>
                    </div>
                </div>
            </div>
        </div>
        <!-- 底部固定区域 -->
        <div class="layui-footer">
            快乐两小时后台
        </div>
        <!-- 辅助元素，手机端遮罩层 -->
        <div class="admin-mobile-shade" kllxs-on="mobileShade"></div>
        <!-- 加载动画 -->
        <div class="loader-main">
            <!-- 动 画 对 象 -->
            <div class="loader"></div>
        </div>
    </div>
    {include file="public/footer" /}
    <script>
        layui.use(["admin"], function () {
            var admin = layui.admin
            admin.render({
                menuUrl: "{:route('admin.index.menu')}", //左侧菜单接口
                baseMineUrl: "{:route('admin.index.basicsInfo')}",//我的基本资料
                pwdMineUrl: "{:route('admin.index.editPwd')}",//我的修改密码
                logOutMineUrl: "{:route('admin.login.logOut')}",//我的退出登录
                clearUrl: "{:route('admin.index.clearUrl')}"//清理缓存
            })
        })
    </script>
</body>

</html>